package com.zero.mapper;

import com.zero.entity.Income;
import com.zero.entity.Condition;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface IncomeMapper {

    int add(Income income);

    int delete(int id);

    int update(Income income);

    List<Income> select(Income income);

    List<Income> selectByCondition(Condition condition);

    Income selectById(int id);

    List<Income> selectByDate(Map map);

}
